﻿using System;
using System.Collections.Generic;
using DevExpress.Xpo;
using System.Text;

namespace BusinessObjects
{
    public class BoPhan:XPObject
    {
        public BoPhan()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public BoPhan(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        //Fields
        string fTenBoPhan = string.Empty;
        [Size(500)]
        public string TenBoPhan
        {
            get { return fTenBoPhan; }
            set { SetPropertyValue<string>("TenBoPhan", ref fTenBoPhan, value); }
        }
        string fMoTa;
        [Size(1000)]
        public string MoTa
        {
            get { return fMoTa; }
            set { SetPropertyValue<string>("MoTa", ref fMoTa, value); }
        }
        [Association(@"LienHeReferencesBoPhan", typeof(LienHe))]
        public XPCollection<LienHe> LienHes { get { return GetCollection<LienHe>("LienHes"); } }
    }
}
